TO_TIME block
Short summary
Name |
|
→POU type |
|
Category |
|
Conform to →IEC-standard |
implementer-specific realization; see "Functionality" and
currently restricted and more possible than defined in IEC-standard; |
Graphical interface |
|
Available since |
|
Functionality
The blocks serves for explicitly converting the value connected to input IN
into a value of data type TIME
.
If the connected value is within the range of values overlapping for the data type of the input and for the result value TIME
, the blocks returns this value.
Implementer-specific realization The IEC-standard defines that it is an error when the connected value is not within the range of values overlapping for the data type of the input and for the data type of the return value as well as that the behavior in the case of such an error is implementer specific. The general behavior of the conversion blocks inNeuron Power Engineer is as follows: The non-overlapping value range is not considered to be an error. Moreover, the following is valid:
|
Observe as well:
-
If a value of data type
DATE_AND_TIME
orDATE
is connected to the input, this value is converted to seconds, relative to the lower limitD#1970-01-01
ofDATE
and the lower limitDT#1970-01-01-00:00:00.000_000_000
ofDATE_AND_TIME
respectively. -
If converting data types to the
TIME
data type and vice versa, the conversion is always based on seconds.
Explicit conversion according to IEC-standard
The IEC-standard defines an explicit conversion of the following data types to TIME
:
LTIME
This data type LITME
is currently not supported in Neuron Power Engineer.
Inputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
value to be converted |
Return value: |
– |
|
|
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Example for usage within ST-editor
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.